'use strict';

const Controller = require('egg').Controller;

class MusicController extends Controller {
  async index() {
    const { ctx } = this;
    const db = this.app.mongodb;
    // eslint-disable-next-line no-undef
    const res = await db.collection('user').find().toArray();
    console.log(res);
    ctx.body = 'music';

  }
}

module.exports = MusicController;
